module.exports = (sequelize, Types) => {
    const Modules = sequelize.define('Modules', {
        id: {
            type: Types.INTEGER(11),
            primaryKey: true,
            autoIncrement: true,
        },
        app: Types.INTEGER(11),       
        module_name: Types.VARCHAR(64),
        module_code: Types.VARCHAR(64),
        module_version: Types.VARCHAR(64),
        description: Types.TEXT(100),
        create_time: Types.DATE,
    },{
        tableName:'modules'
    });
    Modules.sync();
    return Modules;
};